#基础镜像，用官方的Python 3.9
FROM python:3.9
RUN mkdir -p /GreaterWMS/templates
COPY ..  /GreaterWMS
#配置工作目录
WORKDIR /GreaterWMS
#安装supervisor
RUN apt-get update && apt-get upgrade -y
RUN apt-get install build-essential -y
RUN apt-get install supervisor -y
RUN python -m pip install --upgrade pip
#安装supervisor
#安装项目依赖包
RUN pip install supervisor
RUN pip install -U 'Twisted[tls,http2]'
RUN pip install -r requirements.txt
EXPOSE 8008
#CMD ["daphne","-b","0.0.0.0","-p","8008","greaterwms.asgi:application"]
